package nc.bs.test.impl;



import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import nc.itf.test.spring.factory.ISpringFactory;

@SuppressWarnings("serial")
public class SpringFactory implements ISpringFactory{

	public BeanFactory getSpringFactory() throws Exception{
		String xmlPath=String.format("%1$s%2$sierp%2$sbin%2$sspring.xml",nc.bs.framework.common.RuntimeEnv.getInstance().getNCHome(),nc.bs.framework.ServiceConfig.getFileSeparator());
		return new FileSystemXmlApplicationContext(xmlPath);
	}

}
